home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / tcclib.zip / WINDOW.H < prev    next >
Text File  |  1989-01-02  |  1KB  |  45 lines

  1. /* window.h - Windows header file */
  2.  
  3. extern enum windowerrtype
  4. {
  5.     WE_OK,        /* No error has occured */
  6.     WE_OMEM,    /* Out of memory   */
  7.     WE_BADC        /* Bad coordinates */
  8. } windowerr;
  9.  
  10. typedef struct _windowtype
  11. {
  12.     unsigned char     top,
  13.                     left,
  14.                     bottom,
  15.                     right;          /* Coordinates, including box */
  16.     char             *backbuffer; /* Contents of the screen behind the windowtype */
  17.     unsigned char     xpos,
  18.                     ypos;
  19.     unsigned         size;
  20.     struct _windowtype *next;        /* Next windowtype */
  21.     struct _windowtype *previous;    /* Previous windowtype */
  22.     char            attr;
  23. } windowtype;
  24.  
  25. windowtype *makewindow(    unsigned char left, unsigned char top,
  26.                         unsigned char right, unsigned char bottom,
  27.                         char attr, unsigned char the_style, char *title);
  28. int deletewindow(windowtype *current);
  29. int shiftwindow(windowtype *awindow);
  30. int winwrite(windowtype *window, char *string);
  31.  
  32. #ifndef NDEBUG
  33. int sum(int *array, int len);
  34. int checklist(void);
  35. void _update_check(void);
  36. #define update_check() _update_check()
  37. #else
  38. #define update_check()
  39. #endif
  40.  
  41. #define EXPLODE 1
  42. #define POP_UP  0
  43.  
  44.  
  45.